cmake_minimum_required(VERSION 3.10)

project(apriltag-cpp-demo)

find_package(PkgConfig REQUIRED)

pkg_check_modules(AprilTag REQUIRED IMPORTED_TARGET apriltag)

find_package(OpenCV REQUIRED)

include_directories(
	include
	${OpenCV_INCLUDE_DIRS}
)

add_executable(apriltag-cpp-demo
	src/apriltag.cpp
	src/main.cpp
)

target_link_libraries(apriltag-cpp-demo
	PRIVATE
	${OpenCV_LIBS}
	PkgConfig::AprilTag
)
